package linkedQueue;


public class Test {
    public static void main(String[] args) {
        LinkedQueue q = new LinkedQueue();
        q.offer(1);
        q.offer(2);
        q.offer(3);
        q.offer(4);
        while(!q.isEmpty()) {
            System.out.println(q.peek());
            q.poll();
        }
    }
}
